<?php 



$i=$_GET["id"];
// 捕捉要删除的数组下标,在html那里已经设置好id等于数据库的下标

$store = include './store.php';
// 引入数据库成为一个数组
include "./edit.html";


$receive=$_POST;


// var_dump($receive);

$store= include "./store.php";

$receive["create_time"]=time();	

$store[$i]=$receive;

if (empty( $store[$i][1])) {
	
}else{


// var_dump($store);
$str=var_export($store,true);
$str = "<?php return ".$str." ?>";
file_put_contents('./store.php', $str);
header("Location:./index.php");
};



 ?>